//
//  SEExamineRecordOctViewModel.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/8/10.
//

import UIKit

class SEExamineRecordOctViewModel: SEExamineRecordBaseViewModel {

    override var numberOfSections: Int {
        return 2
    }

    override func heightForRow(indexPath: IndexPath) -> CGFloat {
        switch indexPath.section {
        case 0: return 50
        case 1: return 160
        default: return 0
        }
    }

    override func numberOfRowInSection(section: Int) -> Int {
        switch section {
        case 0: return model.otherMeasureData.isEmpty ? 0 : 1
        case 1: return model.imageUrls.count
        default: return 0
        }
    }

    override func titleForHeaderInSection(section: Int) -> String {
        switch section {
        case 0: return model.otherMeasureData.isEmpty ? "" : "检查编码"
        case 1: return model.imageUrls.count == 0 ? "" : "图像"
        default: return ""
        }
    }
    
}
